package com.operation.service;

import com.operation.beans.LevelDirectory;
import com.operation.beans.Result;
import com.operation.entity.OneLevelDirectory;

public interface LevelDirectoryService {
    /**
     * 增加一条目录
     * @return
     */
    public Result addOneRecord(LevelDirectory levelDirectory);

    /**
     * 删除一条目录
     * @return
     */
    public Result deleteOneRecord(LevelDirectory levelDirectory);

    /**
     * 修改一条目录
     * @return
     */
    public Result updateOneRecord(LevelDirectory levelDirectory);

    /**
     * 查询二级目录
     * @return
     */
    public Result queryAllTwoLevelRecord(Integer tType);

    /**
     * 查询所有一级目录
     * @return
     */
    public Result queryAllOneLevelRecord();

    /**
     * 查询目录的类别
     * @return
     */
    public OneLevelDirectory selectOType(String one);

    /**
     * 查询目录名称通过类型
     * @return
     */
    public OneLevelDirectory selectOne(int oType);

}
